Skip to content

fix(initial-data): fix error on fetching initial data when user does not have any workspaces#602

Merged
neSpecc merged 2 commits intomasterfrom
fix-empty-workspaces
Dec 6, 2025
Merged

fix(initial-data): fix error on fetching initial data when user does not have any workspaces#602
neSpecc merged 2 commits intomasterfrom
fix-empty-workspaces

Conversation

@neSpecc
Copy link
Copy Markdown
Member

@neSpecc neSpecc commented Dec 6, 2025

TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at UserModel.<anonymous> (/usr/src/app/src/models/user.js:239:31)
    at Generator.next (<anonymous>)
    at /usr/src/app/src/models/user.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/usr/src/app/src/models/user.js:4:12)
    at UserModel.getWorkspacesIds (/usr/src/app/src/models/user.js:236:16)
    at Object.<anonymous> (/usr/src/app/src/resolvers/workspace.js:69:90)
    at Generator.next (<anonymous>)
    at fulfilled (/usr/src/app/src/resolvers/workspace.js:28:58)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

https://garage.hawk.so/project/5f3e9c71fdac60b3bc70b261/event/690e6de184995d00b343a4eb/69346114c1f613dc5bd31388/overview

image

@neSpecc neSpecc merged commit d0d05ba into master Dec 6, 2025
@neSpecc neSpecc deleted the fix-empty-workspaces branch December 6, 2025 17:46
neSpecc added a commit that referenced this pull request Dec 6, 2025
…not have any workspaces (#602) (#603)

* Update user.ts

* Bump version up to 1.2.29

---------

Co-authored-by: Peter <specc.dev@gmail.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants